package com.bdth.service;

import com.bdth.model.Department;
import com.bdth.model.User;

import java.util.List;
import java.util.Map;

public interface IUserService extends IBaseService<User> {


	/**
	 * 检查登录
	 *
	 * @return
	 */
	public User queryLogin(String loginName, String passWord);


	public List<Map> queryMapDataByMapList(Map map) throws Exception;


	/**
	 * 查询登录名，检查是否存在
	 *
	 * @return
	 */
	public User queryUserByLoginName(String loginName);


	public void add(User user, Integer depId) throws Exception;

	public void update(User user, Integer depId) throws Exception;

	public Department queryDepByUserId(Integer userId);

}
